import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import "../components" as Components
import "../styles" as Styles

Page {
    id: logCenterScreen
    title: qsTr("日志中心")

    background: Rectangle {
        color: Styles.Theme.background
    }

    Rectangle {
        anchors.fill: parent
        anchors.margins: Styles.Theme.spacingLarge
        color: Styles.Theme.surface
        border.color: Styles.Theme.border
        border.width: 1
        radius: Styles.Theme.radiusNormal

        ColumnLayout {
            anchors.centerIn: parent
            spacing: Styles.Theme.spacingLarge

            Text {
                text: "📋"
                font.pixelSize: 64
                Layout.alignment: Qt.AlignHCenter
                opacity: 0.5
            }

            Text {
                text: qsTr("日志中心")
                color: Styles.Theme.textPrimary
                font.pixelSize: Styles.Theme.fontSizeLarge
                font.weight: Styles.Theme.fontWeightMedium
                Layout.alignment: Qt.AlignHCenter
            }

            Text {
                text: qsTr("此功能正在开发中...")
                color: Styles.Theme.textSecondary
                font.pixelSize: Styles.Theme.fontSizeNormal
                Layout.alignment: Qt.AlignHCenter
            }

            Components.ActionButton {
                text: qsTr("返回仪表盘")
                buttonType: "primary"
                Layout.alignment: Qt.AlignHCenter
                onClicked: {
                    // TODO: 导航回仪表盘
                    console.log("Navigate back to dashboard")
                }
            }
        }
    }
}